GtkPathBar: Add a style class
authorMatthias Clasen <mclasen@redhat.com>
Thu, 17 Jul 2014 10:48:36 +0000 (06:48 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 17 Jul 2014 10:48:36 +0000 (06:48 -0400)
This will allow nautilus to reuse the style on its own
pathbar widget.

gtk/gtkpathbar.c

index adb9a8f6fa42710965bb44a04a5d57d703d94d09..ec1f5ed74c26dce086f38ff62372b8c94bcc3dd3 100644 (file)
@@ -202,6 +202,7 @@ gtk_path_bar_init (GtkPathBar *path_bar)
   gtk_widget_set_redraw_on_allocate (GTK_WIDGET (path_bar), FALSE);
 
   context = gtk_widget_get_style_context (GTK_WIDGET (path_bar));
+  gtk_style_context_add_class (context, "path-bar");
   gtk_style_context_add_class (context, GTK_STYLE_CLASS_LINKED);
 
   path_bar->priv->get_info_cancellable = NULL;